a6abe16bae1969c99a04ebc09d2223ca913e0227,ftest/src/test/java/org/searchisko/ftest/rest/CustomTagRestServiceTest.java,CustomTagRestServiceTest,assertNotAuthenticated,#,56
Before Change
// POST /rating/bad-id
given().contentType(ContentType.JSON)
.pathParam("id", "bad-id")
.expect().statusCode(expStatus)
.header("WWW-Authenticate", nullValue())
.log().ifValidationFails()
.when().post(new URL(context, TAGGING_REST_API).toExternalForm());
}
After Change
.post(new URL(context, TAGGING_REST_API).toExternalForm());
// DELETE concrete label
given().contentType(ContentType.JSON).pathParam("id", contentIdToTag).content("{ \"tag\" : \"tag1\"}").expect()
.log().ifValidationFails().statusCode(expStatus).header("WWW-Authenticate", nullValue())
.body(is("Required authorization {0}.")).when()
.delete(new URL(context, TAGGING_REST_API_DELETE_ALL).toExternalForm());
// DELETE _all
given().contentType(ContentType.JSON).pathParam("id", contentIdToTag).expect().log().ifValidationFails()